package com.my.feign;

import com.atguigu.springcloud.entities.Payment;
import com.baomidou.mybatisplus.extension.api.R;
import org.springframework.stereotype.Component;

/**
 * Feign失败配置
 * @author
 */
@Component
public class TestFeignFallback implements ITestFeign {


    @Override
    public R<Payment> findOne(Long id) {
        return R.failed("获取失败");
    }

    @Override
    public R timeOut() {
        return R.failed("获取失败。。超时");
    }

}
